
<form class="layui-form" action="">
  <div class="layui-form-item">
    <label class="layui-form-label">图表标题</label>
    <div class="layui-input-block">
      <input type="text" name="title" id="title" value='{{ formData.title }}' lay-verify="title" autocomplete="off" placeholder="请输入标题" class="layui-input" >
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">图表JS</label>
    <div class="layui-input-block">
      <input type="text" name="chartJS"  id="chartJS" value='{{ formData.chartjs }}' lay-verify="required" placeholder="图表JS" autocomplete="off" class="layui-input">
    </div>
  </div>
 <div class="layui-form-item">
    <label class="layui-form-label">图表Script</label>
    <div class="layui-input-block">
      <input type="text" name="chartScript" id="chartScript"  value='{{ formData.chartscript }}' lay-verify="required" placeholder="图表Script" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">图表标签</label>
    <div class="layui-input-block">
      <input type="text" name="tag"  id="tag"  value='{{ formData.tag }}' lay-verify="required" placeholder="图表标签" autocomplete="off" class="layui-input">
    </div>
  </div>
<div class="layui-form-item">
    <div class="layui-inline">
      <label class="layui-form-label">发布时间</label>
      <div class="layui-input-inline">
        <input type="text" name="publicTime" id="publicTime" value='{{ formData.publictime }}' lay-verify="date" placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input">
      </div>
    </div>
    <div class="layui-inline">
      <label class="layui-form-label">发布人</label>
      <div class="layui-input-inline">
        <input type="text" name="author" id="author"  value='{{ formData.author }}' lay-verify="email" autocomplete="off" class="layui-input">
      </div>
    </div>

</div>

  <div class="layui-form-item">
    <label class="layui-form-label">是否可浏览</label>
    <div class="layui-input-block">
      <input type="checkbox" checked="" name="chartState" id="chartState" lay-skin="switch" lay-filter="switchTest" lay-text="ON|OFF">
    </div>
  </div>
    <div class="layui-form-item">
    <label class="layui-form-label">图表简述</label>
    <div class="layui-input-block">
      <input type="text" name="abstract" id="abstract" value='{{ formData.abstract }}' lay-verify="title" autocomplete="off" placeholder="请输入标题" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item layui-form-text">
    <label class="layui-form-label">图表描述</label>
    <div class="layui-input-block">
      <textarea name="chartDescription"  id="chartDescription"  placeholder="请输入内容" class="layui-textarea">{{ formData.chartdescription }}</textarea>
    </div>
  </div>
{#    <div class="layui-form-item" pane="">#}
{#    <label class="layui-form-label">原始复选框</label>#}
{#    <div class="layui-input-block">#}
{#      <input type="checkbox" name="like1[write]" lay-skin="primary" title="写作" checked="">#}
{#      <input type="checkbox" name="like1[read]" lay-skin="primary" title="阅读">#}
{#      <input type="checkbox" name="like1[game]" lay-skin="primary" title="游戏" disabled="">#}
{#    </div>#}
{#  </div>#}
  <!--<div class="layui-form-item layui-form-text">
    <label class="layui-form-label">编辑器</label>
    <div class="layui-input-block">
      <textarea class="layui-textarea layui-hide" name="content" lay-verify="content" id="LAY_demo_editor"></textarea>
    </div>
  </div>-->
  <div class="layui-form-item">
    <div class="layui-input-block">
      <button class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
    </div>
  </div>
</form>
